package com.IO.IODemo01;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;

public class A03 {
    public static void main(String[] args) throws IOException {
        FileOutputStream fos = new FileOutputStream("untitled\\aaa.txt");
        // fos.write(97);
        // fos.write(98);
        
        byte[] bytes = {97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122};
        // fos.write(bytes);
        fos.write(bytes,1,2);
        
        
        fos.close();
    }
}
